package com.lagou.edu.service.impl;



import com.lagou.edu.dao.LagouTokenDao;
import com.lagou.edu.pojo.LagouAuthCode;
import com.lagou.edu.pojo.LagouToken;
import com.lagou.edu.pojo.UserInfo;
import com.lagou.edu.service.LagouTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author wyx
 * @Date 2020/5/5 23:48
 */
@Service
public class LagouTokenServiceImpl implements LagouTokenService {

    @Autowired
    private LagouTokenDao lagouTokenDao;

    @Override
    public String saveToken(LagouToken lagouToken )  {
        lagouTokenDao.save(lagouToken);
        return "保存成功";
    }

    @Override
    public String findMailByToken(String lagouToken )  {
        return lagouTokenDao.findByToken(lagouToken);
    }

}